package com.matrix.kernel.controller.shell;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.matrix.kernel.util.PageUtils;
import com.matrix.kernel.util.Query;
import com.matrix.kernel.util.R;

/**
 * shell程序
 * 
 * @author wubo
 *
 */
@Controller
@RequestMapping("/shell")
public class ShellController {
	
	/**
	 * 
     * @param params
     * @return
     */
    @RequestMapping("/we")
    public R list(@RequestParam Map<String, Object> params){
        //查询列表数据
        Query query = new Query(params);

//        // 添加机构代码参数
//        SysAgencyEntity agency = this.sysAgencyService.queryAgencyByDomain(ShiroUtils.getDomain());
//        query.put("agencycode", agency.getAgencyCode());
//
//        List<AnnualFeeInfo> cusContractList = annualFeeService.queryList(query);
//        int total = annualFeeService.queryTotal(query);

        PageUtils pageUtil = new PageUtils(null, 0, query.getLimit(), query.getPage());
        return R.ok().put("page", pageUtil);
    }
	
}
